package website.digitalocean.chapter16;

import lombok.extern.slf4j.Slf4j;

/**
 * @author: longhc@citycloud.com.cn
 * @since: 2023/2/16 9:48
 * @version: 1.0
 */
@Slf4j
public class PayPalStrategy implements PaymentStrategy {

    private String emailId;
    private String password;

    public PayPalStrategy(String emailId, String password) {
        this.emailId = emailId;
        this.password = password;
    }

    @Override
    public void pay(int amount) {
        log.info("使用 PayPal 支付; amount:{}", amount);
    }
}
